package com.soft.sitegenerator.business.hibernate;

import java.util.Collection;

public class SimpleTemplate extends Template {

	private Long id;

	private String text;

	private String classType;

	public String getClassType() {
		return classType;
	}

	public void setClassType(String classType) {
		this.classType = classType;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Collection findAll() {
		return hibernateDAOHib.find("from SimpleTemplate order by name");
	}

	public Collection findAllNotModificable() {
		return hibernateDAOHib.find("from SimpleTemplate where canUpdate = 'no' order by name");
	}
	
}
